
import java.io.IOException;
import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.Form;
import javax.microedition.lcdui.Image;
import javax.microedition.lcdui.ImageItem;
import javax.microedition.lcdui.StringItem;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
/**
 *
 * @author Abahe
 */
public class Help extends Form implements CommandListener {

    private BTIMidlet midlet;
    private Command cmdKembali;    
    private StringItem strDeskripsi;

    public Help(BTIMidlet midlet, String nama) {
        super(nama);

        this.midlet = midlet;

        cmdKembali = new Command("Kembali", Command.BACK, 1);

        strDeskripsi = new StringItem("Bantuan : ", "Pilih menu Objek Wisata untuk meilhat Objek Wisata yang ada di Bandung");
        
        addCommand(cmdKembali);        
        setCommandListener(this);

        append(strDeskripsi);
    }
    public void commandAction(Command c, Displayable d) {
        if(c == cmdKembali){
            midlet.backToMenuCanvas();
        }
    }

    
}
